<template>
	<view class="filter" >
		<view class="filter-box" v-for="item in list" :key="item.id">
			<text class="filter-box-title">{{item.title}}</text>
			<text class="filter-box-dropDown"></text>
		</view>
	</view>
</template>

<script>
	export default{
		props:{
			list:{
				type:Array,
				default: () => {
					return () => [
						{
							title:'地区',
							id:'1'
						},{
							title:'房屋转租',
							id:'2'
						},{
							title:'默认排序',
							id:'3'
						},{
							title:'筛选',
							id:'4'
						}
					]
				}
			}
		},
		data() {
			return {
			}
		}
	}
</script>

<style lang="less" scoped>
	.filter{
		width: 100%;
		display: flex;
		height: 34rpx;
		justify-content: space-between;
		&-box{
			display: flex;
			align-items: center;
			&-title{
				font-family: PingFangSC, PingFang SC;
				font-weight: 500;
				font-size: 24rpx;
				color: #1A1E2F;
				margin-right: 8rpx;
			}
			&-dropDown{
				width: 24rpx;
				height: 24rpx;
				background-image: url('@/static/houseSublease/dropDown.png');
				background-size: 100% 100%;
				background-repeat: no-repeat;
			}
		}
	}
</style>